package org.hank.demoproject.fragment_result

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import org.hank.demoproject.R

class FragmentResultActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_fragment_result)
        var fragmentA = Fragment_A()
        var fragmentB = Fragment_B()
        var fb = supportFragmentManager.beginTransaction()
        fb.add(R.id.frame1,fragmentA)
        fb.add(R.id.frame2,fragmentB)
        fb.commit()
    }
}